<?php

namespace App\Admin\Controllers;

use Encore\Admin\Layout\Row;
use Encore\Admin\Layout\Column;
use Encore\Admin\Layout\Content;
use App\Admin\Extensions\HomeBoxes;
use App\Admin\Extensions\AdminHome;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Log;

class HomeController extends Controller
{
    public function index(Content $content)
    {
    	Log::info("===== Balancer is running =====");
    	
        return $content
            ->title('Rich-Things Dashboard')
            ->description('Dream in future and believe in future...')
	        ->row(AdminHome::title())
	        ->row(function (Row $row) {
		        /*$row->column(4, function (Column $column) {
			        $column->append(AdminHome::cachedProductsSample());
		        });*/
	        });
    }
}
